package com.alibaba.dongbao.service;

import com.alibaba.dongbao.base.result.Result;
import com.alibaba.dongbao.dto.UserDTO;
import com.alibaba.dongbao.entity.User;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface UserService extends IService<User>{

    /**
     * @Author: Mr.ZJW
     * @Description: 用户注册
     * @Date: 2022/4/6 17:09
     **/
    Result registerUser(User member);

    /**
     * @Author: Mr.ZJW
     * @Description: 登录
     * @Date: 2022/4/7 14:50
     *
     * @param memberDTO*/
    Result login(UserDTO memberDTO);

    /**
     * @Author: Mr.ZJW
     * @Description: 查询用户列表
     * @Date: 2022/4/8 14:01
     **/
    IPage<User> queryUserList(Page page, UserDTO member);

    /**
     * @Author: Mr.ZJW
     * @Description: 修改用户信息
     * @Date: 2022/4/8 16:11
     * @param user   */
    Result modifyUser(User user);

    /**
     * @param [user]
     * @param userDTO
     * @Author: Mr.ZJW
     * @Description: 用户修改密码
     * @Date: 2022/6/6 9:09
    **/
    Result userModifyPassword(UserDTO userDTO);
}
